<?php
//include BSTO_PATH . '/model/cronfeed.class.php';
define ('TEST', false);

class FeedController extends BaseController
{
	public function index()
	{
		if (TEST) {
			$feed = new CronFeed($this->registry->db);
			$feed->run();
			echo 'okie';
		} else {
			header("Content-Type: application/rss+xml; charset=ISO-8859-1");
			$rss = file_get_contents( BSTO_PATH . '/model/feed/newbook.xml');
			echo $rss;
		}
	}
}
?>